<!--
 * @Description: 渲染
 * @Author: zzj
 * @Date: 2021-10-09 09:35:49
 * @LastEditors: zzj
 * @LastEditTime: 2021-10-09 16:53:19
-->
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>渲染</title>
	<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>
</head>
<body>
	<div id="app">
		<div>{{ msg }}</div>
		<div>{{ JSON.stringify(obj) }}</div>
		<div>{{ foo() }}</div>
		<div>{{ foo() }}</div>
		<div>{{ foo() }}</div>
	</div>
	<script>
		new Vue({
			el:"#app",
			data:{
				msg:"hello vue",
				obj:{name:"terry"}
			},
			methods:{
				foo(){
					console.log("this is foo");
					return "hello foo"
				}
			}
		})
	</script>
</body>
</html>